package mz.behaveas.model.expectation {

	import mz.behaveas.model.Descriptional;
	
	/**
	 * Expectation is an entity that wraps the behavioure and can check if this behaviour is correct, or if it fire an unexpected error.
	 * 
	 * @author maxim.zaks@gmail.com
	 */
	public interface Expectation extends Descriptional {
		
		/**
		 * returns if the behavioure returned expected value, or fired expected error.
		 */
		function get isCorrect() : Boolean;
		
		/**
		 * return the unexpected fired error. can be null.
		 */
		function getError() : Error;
	}
}
